<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">


<!-- Mirrored from www.zi-han.net/theme/hplus/login_v2.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:49 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>PHP1611后台管理系统 - 登录</title>
    <style type="text/css">
        .layui-layer-content{
            color:orange;
        }
    </style>
    <meta name="keywords" content="PHP1611后台管理系统">
    <meta name="description" content="PHP1611后台管理系统">
    <link href="/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/Admin/css/animate.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/style.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/login.min.css" rel="stylesheet">
    <link href="/Public/Admin/js/plugins/layer/skin/default/layer.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if(window.top!==window.self){window.top.location=window.location};
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ H+ ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎登录PHP1611后台管理系统</h4>
                    <strong>还没有账号？ <a href="#">立即注册&raquo;</a></strong>
                </div>
            </div>
            <div class="col-sm-5">
                <form method="post" action="<?php echo U('Login/doLogin');?>" id="doLogin">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到H+后台主题UI框架</p>
                    <input type="text" class="form-control uname" name="username" id="username" placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" name="password" id="password" placeholder="密码" />
                    <a href="#">忘记密码了？</a>
                    <button class="btn btn-primary btn-block">登录</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2015 All Rights Reserved. H+
            </div>
        </div>
    </div>
<script src="/Public/Admin/js/jquery.min.js"></script>
<script src="/Public/Admin/js/jquery.form.js"></script>
<script src="/Public/Admin/js/plugins/layer/layer.min.js"></script>
<script src="/Public/Admin/js/common.js"></script>
<script>
    $(function(){
        $("#doLogin").ajaxForm({
            beforeSubmit:checkForm,
            success:complete,
            dataType:'JSON',
            clearForm:true
        });
    });
    function checkForm(){
        if($('#username').val() == ''){
            common.error('用户名不能为空！');
            return false;
        }
        $passWstr = $('#password').val();
        if($passWstr == ''){
            common.error('密码不能为空！');
            return false;
        }
        if($passWstr.length < 6 || $passWstr.length > 15){
            common.error('密码长度不对！');
        	$('#password').val('').focus();
        	return false;
        }
        $('button').removeClass('btn-primary').addClass('btn-info').attr('disabled','disabled').text('登录中...');//disabled 属性规定应该禁用 input 元素。点击提交之后的过程中不能再点击
    }
    function complete(data){
        if(data.status > 0){
            common.error(data.msg);
            $('button').removeClass('btn-info').addClass('btn-primary').removeAttr('disabled').text('登录');
        	return false;
        }
        common.success(data.msg,'/admin/');
    }
</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/login_v2.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:52 GMT -->
</html>